// 封装数据持久化文件
var Storage = {
  set(key, value) {
    //增加
    localStorage.setItem(key, JSON.stringify(value));
  },
  get(key) {
    //获取
    return JSON.parse(localStorage.getItem(key));
  },
  remove(key) {
    //删除
    localStorage.removeItem(key);
  },
};

export default Storage;
